
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildExchequerCfg : public ManualSingleton <GuildExchequerCfg>
{
	friend ManualSingleton <GuildExchequerCfg>;
public:
	GuildExchequerCfg();
	~GuildExchequerCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildExchequerCfgInfo *GetGuildExchequerCfgInfo(int32_t exchequerId);
	const GuildExchequerCfgMap *GetGuildExchequerCfgMap() { return &m_GuildExchequerCfgMap; }
private:
	GuildExchequerCfgMap m_GuildExchequerCfgMap;
};

#define  g_MakeGuildExchequerCfgTable() (GuildExchequerCfg::Instance())
#define  g_GetGuildExchequerCfgTable() (GuildExchequerCfg::GetInstance())
#define  g_DelGuildExchequerCfgTable() (GuildExchequerCfg::Destroy())